﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="managerbody.aspx.cs" Inherits="LTJ.WebPage.UserManage.framepage.managerbody" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>运价中国管理系统</title>
    <link href="../css/comm.css" type="text/css" rel="stylesheet" />
    <script src="../js/jquery.js" type="text/javascript"></script>
</head>
<body style="background:#ebf3f6;">
    <form id="form1" runat="server">
    <div class="cot">
        <div class="menu" id="menu">
        <%int menucount = 0;%>
        <%if(menulist!=""){%>
        <%foreach(System.Data.DataRow dr in menudata.Select("id in ("+menulist+")")){%>
            <strong class="<%if(menucount==0){%>bg1<%}else{%>bg2<%}%>"><span><%=dr["menutitle"]%></span> <em class="tu1"></em></strong>
            <ul <%if(menucount==0){%>style="display: inline;"<%}%>>
            <%
              foreach(System.Data.DataRow subdr in submenudata.Select("parentid = " + dr["menuid"])){
                  if (!("," + companyinfo.Authoritys).Contains("," + subdr["menulink"] + "|")) continue;
                  if (!("," + userauth.Authoritys).Contains("," + subdr["menulink"] + "|")) continue;

                  %>
                <li><a title="<%=subdr["menutitle"]%>" href="../<%=subdr["menulink"]%>" target="main"><%=subdr["menutitle"]%></a></li>
            <%}%>
            </ul>
        <%menucount++;%>
        <%}%>
        <%}%>
        </div>
        <div class="rt">
            <div class="nrrt">
                <iframe id="main" width="100%" height="600px" style="z-index: 2;" name="main" frameborder="0" scrolling="auto" src="../<%=defaulturl%>">
                </iframe>
            </div>
        </div>
    </div>
    </form>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery("#menu").find("a").click(function () {
            jQuery("#menu").find("a").removeClass("fw");
            jQuery(this).addClass("fw");
        });

        jQuery("#menu").find("strong").click(function () {
            jQuery("#menu").find("ul").slideUp();
            jQuery("#menu").find("em").removeClass().addClass("tu2");
            jQuery("#menu").find("strong").removeClass().addClass("bg2");
            var nr = jQuery(this).next();
            if (nr.is(':visible')) {
                nr.slideUp();
                jQuery(this).find("em").removeClass().addClass("tu2");
                jQuery(this).removeClass().addClass("bg2");
            } else {
                nr.slideDown();
                jQuery(this).find("em").removeClass().addClass("tu1");
                jQuery(this).removeClass().addClass("bg1");
            }
        });
    });
</script>
</html>
